package com.atguigu.visitor.demo2;

/**
 * 消费的单子，具体的Element
 */
public class BillForConsume implements Bill {

	private double amount;

	private String item;

	public BillForConsume(double amount, String item) {
		super();
		this.amount = amount;
		this.item = item;
	}

	public void accept(AccountBookViewer viewer) {
		viewer.view(this);
	}

	public double getAmount() {
		return amount;
	}

	public String getItem() {
		return item;
	}

}


